package top.kaoshanji.p1ch10a;

/**
 * 代码清单-p1ch10a-223页a：抽象类示例
 * author kaoshanji
 * ^_^
 * create time 2025/3/10 17:11
 */
public class Instantiable extends Uninstantiable {

    @Override
    void f() {
        System.out.println("f()");
    }

    @Override
    int g() {
        return 22;
    }

    public static void main(String[] args) {
        new Instantiable();
    }

}

abstract class Uninstantiable {
    abstract void f();
    abstract int g();
}

